package com.shop.api.controller;

import com.shop.api.client.PayClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Authror jacky
 * @create 2019-09-20
 */
@RestController
public class PayController {

    @Autowired
    private PayClient payClient;

    @RequestMapping("/pay.do")
    public String pay(Double amount) {
        return payClient.pay(amount);
    }

}
